package com.entity;

public class ShopCart {
	private int scid;
	private String scname;
	private int scnum;
	private double scPrice;
	private int sc_status; // 状态, 1 代表 未购买,显示在购物车上  5代表已购买,购物车上不显示,    2 用户删除该条产品 在购物车上的信息 (可以通过撤销 还原)  
	private double  count;																		//3 代表用户 退出本次 购物体检 ,并且将该商品删除,不可撤销   
	private Consumer consumer;
	
	public ShopCart(int scid, String scname, int scnum, double scPrice, int sc_status, Consumer consumer) {
		super();
		this.scid = scid;
		this.scname = scname;
		this.scnum = scnum;
		this.scPrice = scPrice;
		this.sc_status = sc_status;
		this.consumer = consumer;
	}
	
	public ShopCart(int scid, String scname, int scnum, int sc_status, Consumer consumer) {
		super();
		this.scid = scid;
		this.scname = scname;
		this.scnum = scnum;
		this.sc_status = sc_status;
		this.consumer = consumer;
	}

	public ShopCart() {
		super();
	}
	
	public ShopCart(double count) {
		super();
		this.count = count;
	}

	public int getScid() {
		return scid;
	}
	public void setScid(int scid) {
		this.scid = scid;
	}
	public String getScname() {
		return scname;
	}
	public void setScname(String scname) {
		this.scname = scname;
	}
	public int getScnum() {
		return scnum;
	}
	public void setScnum(int scnum) {
		this.scnum = scnum;
	}
	public int getSc_status() {
		return sc_status;
	}
	public void setSc_status(int sc_status) {
		this.sc_status = sc_status;
	}
	public Consumer getConsumer() {
		return consumer;
	}
	public void setConsumer(Consumer consumer) {
		this.consumer = consumer;
	}
	
	public double getScPrice() {
		return scPrice;
	}
	public void setScPrice(double scPrice) {
		this.scPrice = scPrice;
	}
	
	public double getCount() {
		return count;
	}

	public void setCount(double count) {
		this.count = count;
	}

	/**
	 * toString  未带有 consumer 
	 */

	@Override
	public String toString() {
		return "ShopCart [scid=" + scid + ", scname=" + scname + ", scnum=" + scnum + ", scPrice=" + scPrice
				+ ", sc_status=" + sc_status + ", consumer=" + consumer + "]";
	}

	
}
